package practice.practice_0827;

public class Main {
    public static void main(String[] args) {
        StoreList sl1=new StoreList("Mac BookAir",13.3,6988.88,"i5处理器4GB内存128G固态硬盘",5);
        StoreList sl2=new StoreList("ThinkpadT450",14.0,5999.99,"i5处理器4GB内存500G硬盘",10);
        StoreList sl3=new StoreList("ASUS-FL5800",15.6,4999.5,"i7处理器4GB内存128G固态硬盘",18);
        System.out.println("--------------------------------商城库存清单--------------------------------");
        sl1.print();
        System.out.println(sl1.brand+"\t\t"+sl1.size+"\t\t"+sl1.price+"\t\t"+sl1.dispose+"\t\t"+sl1.stockNumber);
        System.out.println(sl2.brand+"\t"+sl2.size+"\t\t"+sl2.price+"\t\t"+sl2.dispose+"\t\t"+sl2.stockNumber);
        System.out.println(sl3.brand+"\t\t"+sl3.size+"\t\t"+sl3.price+"\t\t"+sl3.dispose+"\t\t"+sl3.stockNumber);
        System.out.println("-------------------------------------------------------------------------");
        int sumStock=sl1.stockNumber+sl2.stockNumber+sl3.stockNumber;
        double sumPrice=sl1.stockNumber* sl1.price+sl2.stockNumber*sl2.price+sl3.stockNumber* sl3.price;
        System.out.println("总库存数："+sumStock);
        System.out.println("库存商品总金额："+sumPrice);
    }
}
